package com.fengycx.feign;

import cn.dev33.satoken.annotation.SaIgnore;
import com.fengycx.constants.Constants;
import com.fengycx.fallback.AppLoginApiFallbackFactory;
import com.fengycx.pojo.param.AppLoginApiParam;
import com.fengycx.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


@FeignClient(value = Constants.Remote.SERVICE_UAA,contextId = "appLoginApi",fallbackFactory = AppLoginApiFallbackFactory.class)
public interface AppLoginApi {


    @PostMapping("app/login/appLogin")
    @SaIgnore
    R<Boolean> appLogin(@RequestBody @Valid AppLoginApiParam login);

}
